package com.an.blog.admin.domain.bo;

import com.an.common.core.validate.AddGroup;
import com.an.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import com.an.common.core.domain.BaseEntity;

/**
 * 博客分类业务对象 blog_category
 *
 * @author Ann
 * @date 2023-05-08
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class BlogCategoryBo extends BaseEntity {

    /**
     * 分类id
     */
    @NotNull(message = "分类id不能为空", groups = { EditGroup.class })
    private Long categoryId;

    /**
     * 分类名称
     */
    @NotBlank(message = "分类名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String categoryName;

    /**
     * 状态（0正常 1禁用）
     */
    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;


}
